package com.example.shardingjdbcdemo.constants;

/**
 * 全局公共常量
 *
 * @author qiaopengxiang
 * @date 2020/11/12 10:00
 */
public interface CommonConstant {

    String PATTERN_DATETIME = "yyyy-MM-dd HH:mm:ss";
    
    /**
     * token请求头名称
     */
    String TOKEN_HEADER = "Authorization";

    /**
     * The access token issued by the authorization server. This value is REQUIRED.
     */
    String ACCESS_TOKEN = "access_token";

    String HEADER = "base-auth";

    String BEARER_TYPE = "Bearer";

    /**
     * 标签 header key
     */
    String HEADER_LABEL = "x-label";

    /**
     * 标签 header 分隔符
     */
    String HEADER_LABEL_SPLIT = ",";

    /**
     * 标签或 名称
     */
    String LABEL_OR = "labelOr";

    /**
     * 标签且 名称
     */
    String LABEL_AND = "labelAnd";

    /**
     * 权重key
     */
    String WEIGHT_KEY = "weight";

    /**
     * 分布式锁前缀
     */
    String LOCK_KEY_PREFIX = "LOCK_KEY:";

    /**
     * 租户id参数
     */
    String TENANT_ID_PARAM = "tenantId";


    /**
     * 日志链路追踪id信息头
     */
    String TRACE_ID_HEADER = "x-traceId-header";

    /**
     * 日志链路追踪id日志标志
     */
    String LOG_TRACE_ID = "traceId";

    /**
     * request id header
     */
    String REQUEST_ID_HEADER = "x-requestId-header";

    /**
     * 日志中request id
     */
    String LOG_REQUEST_ID = "requestId";


    /**
     * 负载均衡策略-版本号 信息头
     */
    String Z_L_T_VERSION = "m-s-version";
    /**
     * 注册中心元数据 版本号
     */
    String METADATA_VERSION = "version";

    /**
     * 超级管理员用户名
     */
    String ADMIN_USER_NAME = "admin";

    /**
     * 数据环境标识
     */
    String HEADER_DATA_ENV_ID = "data-env-id";

}
